﻿using UnityEngine;
using System.Collections;

public class GameMode : MonoBehaviour {
	public static GameMode instance;
	public int mode;
	public int AI1;
	public int AI2;
	// Use this for initialization
	void Start () {
		if(instance!=null && instance!=this){
			Destroy(this.gameObject);
			return;
		}
		instance=this;
		DontDestroyOnLoad(this.gameObject);
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	public void setMode(int gameMode,int AI1,int AI2){
		/*default AI lv is 0*/
		mode=gameMode;
		this.AI1=AI1;
		this.AI2=AI2;
	}
}
